home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacApp Release 10 / MacApp Release 10 - HD Ready / Examples / Skeleton / UTrackerSkeleton.h < prev    next >
Encoding:
Text File  |  1996-04-03  |  1.7 KB  |  68 lines  |  [TEXT/MPS ]

  1. // UTrackerSkeleton.h
  2. // Copyright © 1991-96 by Apple Computer, Inc. All rights reserved. 
  3.  
  4. #ifndef __UTRACKERSKELETON__
  5. #define __UTRACKERSKELETON__
  6.  
  7. #ifndef __UCOMMAND__
  8. #include "UCommand.h"
  9. #endif
  10.  
  11. //----------------------------------------------------------------------------------------
  12. // Forward and external classes
  13. //----------------------------------------------------------------------------------------
  14.  
  15. class TDocumentSkeleton;        
  16.  
  17. //----------------------------------------------------------------------------------------
  18. // TTrackerSkeleton
  19. //----------------------------------------------------------------------------------------
  20.  
  21. class TTrackerSkeleton: public TTracker
  22. {
  23.     MA_DECLARE_CLASS;
  24.  
  25.   public:
  26.     TDocumentSkeleton* fDocumentSkeleton;
  27.     
  28.     TTrackerSkeleton(); 
  29.         // Constructor
  30.     
  31.     virtual ~TTrackerSkeleton();
  32.         // Destructor
  33.         
  34.     virtual void ITrackerSkeleton(TDocumentSkeleton* itsDocumentSkeleton,
  35.                                   TView* itsView,
  36.                                   TScroller* itsScroller,
  37.                                   const VPoint& itsMouse);
  38.         // Comment Required
  39.         
  40.     // Commands            
  41.     virtual void DoIt(); // Override
  42.         // Comment Required
  43.         
  44.     virtual void UndoIt(); // Override
  45.         // Comment Required
  46.         
  47.     virtual void RedoIt(); // Override
  48.     
  49.     // Tracking
  50.     virtual void TrackFeedback(TrackPhase aTrackPhase,
  51.                                 const VPoint& anchorPoint,
  52.                                 const VPoint& previousPoint,
  53.                                 const VPoint& nextPoint,
  54.                                 Boolean mouseDidMove,
  55.                                 Boolean turnItOn); // Override
  56.         // Comment Required
  57.         
  58.     virtual TTracker* TrackMouse(TrackPhase aTrackPhase,
  59.                                  VPoint& anchorPoint,
  60.                                  VPoint& previousPoint,
  61.                                  VPoint& nextPoint,
  62.                                  Boolean mouseDidMove); // Override
  63.         // Comment Required
  64.         
  65. };
  66.  
  67. #endif
  68.